package com.zscat.order;

import com.github.pagehelper.PageInterceptor;
import com.zscat.web.spring.boot.dubbo.EnableDubboConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Controller
@EnableWebMvc
@SpringBootApplication
@MapperScan(basePackages = "com.zscat.*.mapper")
@EnableDubboConfiguration
public class OrderApplication extends WebMvcConfigurerAdapter {
    private static Logger log = LoggerFactory.getLogger(OrderApplication.class);
    public static void main(String[] args) {
        log.info("start..order...");
        SpringApplication.run(OrderApplication.class, args);
        log.info("end....order...");
    }
}